package top.manbutech.activity.activitydemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class RegisterResultActivity extends Activity {

    private static final String TAG = "RegisterResultActivity";
    private TextView mRelault;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register_result);

        Intent intent = getIntent();
        if(intent != null){
            String username = intent.getStringExtra("username");
            String password = intent.getStringExtra("password");

            Log.d(TAG, "username: "+username);
            Log.d(TAG, "password: "+password);

            mRelault = (TextView) this.findViewById(R.id.result);
            mRelault.setText("恭喜"+username+"注册成功！");
        }


    }
}
